JavaScript Closures
Counting with a local variable. "private variables, not global"
0
First Paragraph Tag
Array Play: ["Banana", "Orange", "Lemon", "Apple", "Mango"]
Pop
Push Custom Fruit
Sorting
Sorting Numbers: [40, 100, 1, 5, 25, 10]
Conditional (Ternary) Operator
Loop through array from above using for(x of array)
Loop through array from above using array.foreach
Change the types of objects: 0
Number
Mess with this.
Make Custom Car, Make & Model, Car Class (debugger and console added)
Getter and Setter, benefits are to be able to get the data and manipulate it so it doesnt change the object, also simpler syntax
Counting with a local variable. "private variables, not global"
0
Load an html file
Find different elements of the DOM
Click me! Inside gets read first then outside
Click me! vise versa
Here we have a DIV, we can append and remove children:
Change this content using the XMLHttpRequest. This is on AWS server. Most likely still getting CORS error :?
Not AJAX but just a file reader. for ones local machine aka MINE
Sending Data --> JSON.stringify() , Receiving data --> JSON. parse()
Below is an example of how to store on your local machine and to store through session, session is lost after browser is closed
This is where the data should be changed. Will need further tutorials about JSON and PHP
Using JSON with PHP Server
Using JSONP, this works around that PESKY CORS. Get the PHP file names jsonp_demo, loaded upon entry
Application Programming Interface
The browser has a location API built in
Using JQUERY to find and maniplate DOM elements
Hello World!
Hello Sweden!
Hello Japan!
4
x5
A + B =
Change style using JQUERY